﻿<%@ WebHandler Language="C#" Class="FileCategory_UpdateOrdersDown" %>

using System;
using System.Web;
using HNG.Portal.BLL;
using HNG.Portal.DAL;
using HNG.Portal.DAL.EntityClasses;
using HNG.Portal.DAL.FactoryClasses;
using HNG.Portal.DAL.HelperClasses;
using SD.LLBLGen.Pro.ORMSupportClasses;
public class FileCategory_UpdateOrdersDown : IHttpHandler
{
    TblMediaCategoryManager _TblMediaCategoryManager = new TblMediaCategoryManager();
    public void ProcessRequest(HttpContext context)
    {
        context.Response.ContentType = "text/html";
        string rtn = "-1";
        int CateID = 0;
        try { CateID = Convert.ToInt32(context.Request.QueryString["id"].Trim()); }
        catch { CateID = 0; }

        if (CateID != 0)
        {
            rtn = _TblMediaCategoryManager.be_UpdateOrderDown(CateID).ToString();
        }
        context.Response.Write(rtn);
    }

    public bool IsReusable
    {
        get
        {
            return false;
        }
    }
}